
import { defineStore } from 'pinia'

import SingleSelect from "@/config/defaultStatus/SingleSelect.ts";
import MultiSelect from '@/config/defaultStatus/MultiSelect.ts';
import type { Material, Status } from '@/types';


type Select = "single-select" | 'multi-select'

export const useMaterialStore = defineStore('materialStore', {
  state: ():{ currentMaterialCom: Select; coms: { 'single-select': Status,'multi-select':Status } }=>({

    currentMaterialCom:'single-select',
    coms:{
      'single-select':SingleSelect(),
      'multi-select':MultiSelect()
    }
  })
})
